package com.itheima.pojo;

import java.io.Serializable;

public class Food implements Serializable {

    private Integer id; //id
    private String code; //膳食编码
    private String name; //膳食名称
    private String remark; //食品名称
    private String unit; //食品尺寸
    private String age; //适用年龄

    public Food(Integer id, String code, String name, String remark, String unit, String age) {
        this.id = id;
        this.code = code;
        this.name = name;
        this.remark = remark;
        this.unit = unit;
        this.age = age;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Food{" +
                "id=" + id +
                ", code='" + code + '\'' +
                ", name='" + name + '\'' +
                ", remark='" + remark + '\'' +
                ", unit='" + unit + '\'' +
                ", age='" + age + '\'' +
                '}';
    }
}
